<?php

namespace App\Models\Member;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;

/**
 * App\Models\Member\CertificationPersonal
 *
 * @property int $id
 * @property int $user_id 用户ID
 * @property string $name 姓名
 * @property string $type 证件类型 身份证=1 护照=2 港澳居民来往内地通行证=3 台湾居民来往大陆通行证=4 外国人永久居留身份证=5 港澳居民居住证=6 台湾居民居住证=7 军官证=8 其他=9
 * @property string $number 证件号码
 * @property string $image1 正面照片 url
 * @property string|null $image2 反面照片 url
 * @property int $status 认证状态 等待验证=0 通过验证=1 验证失败=-1
 * @property \Illuminate\Support\Carbon|null $created_at
 * @property \Illuminate\Support\Carbon|null $updated_at
 * @property-read \Illuminate\Notifications\DatabaseNotificationCollection|\Illuminate\Notifications\DatabaseNotification[] $notifications
 * @property-read int|null $notifications_count
 * @method static \Illuminate\Database\Eloquent\Builder|CertificationPersonal newModelQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|CertificationPersonal newQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|CertificationPersonal query()
 * @method static \Illuminate\Database\Eloquent\Builder|CertificationPersonal whereCreatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|CertificationPersonal whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|CertificationPersonal whereImage1($value)
 * @method static \Illuminate\Database\Eloquent\Builder|CertificationPersonal whereImage2($value)
 * @method static \Illuminate\Database\Eloquent\Builder|CertificationPersonal whereName($value)
 * @method static \Illuminate\Database\Eloquent\Builder|CertificationPersonal whereNumber($value)
 * @method static \Illuminate\Database\Eloquent\Builder|CertificationPersonal whereStatus($value)
 * @method static \Illuminate\Database\Eloquent\Builder|CertificationPersonal whereType($value)
 * @method static \Illuminate\Database\Eloquent\Builder|CertificationPersonal whereUpdatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|CertificationPersonal whereUserId($value)
 * @mixin \Eloquent
 */
class CertificationPersonal extends Authenticatable {
	use HasFactory, Notifiable;

	protected $table = 'certification_personal';
	protected $primaryKey = 'id';
	public $timestamps = true;
	protected $fillable = [
		'user_id',
		'name',
		'type',
		'number',
		'image1',
		'image2',
		'status',
	];
}
